package top.z.orm.core.osql.transaction;

/**
 * 事务接口
 */
public interface Transaction {

    void begin();

    void commit();

    void rollback();

    void setReadOnly(boolean readOnly);

    void setTransactionIsolation(TransactionIsolationLevel transactionIsolationLevel);

    boolean isReadOnly();

    int getTransactionIsolation();

    void setTimeout(int seconds);
}